package com.webflux.tm.webflux.module.logic.mysql.handler;

import com.webflux.tm.webflux.module.logic.mysql.bean.ShDevice;
import com.webflux.tm.webflux.module.logic.mysql.service.ShDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * @author Surging
 * @version 1.0
 * @ClassName ShDeviceHandler
 * @date 2023-05-09 11:31
 * @desc
 */
@Component
public class ShDeviceHandler {

    @Autowired
    private ShDeviceService shDeviceService;

    public List<ShDevice> listAllDevices() {
        return shDeviceService.list();
    }
}
